Skip to content

Conversation

@ardaguclu
Copy link
Member

I noticed the panic while testing due to the unexpected types of objects. This PR checks the type first and returns error gracefully to prevent panic (which results in the crash of application)

@manusa
Copy link
Member

manusa commented Jun 20, 2025

This seems more like a bad client implementation sending types which don't adhere to the "contract".
In any case, better safe than sorry :) 🚀

@manusa manusa added this to the 0.1.0 milestone Jun 20, 2025 — with automated-tasks
Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx!

@manusa manusa merged commit bca2cda into containers:main Jun 20, 2025
5 checks passed
@ardaguclu ardaguclu deleted the gracefully-cast branch June 20, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants